<template>
	<view class="menu-box left clearfix">
		<view class="menu-breadcrumb left clearfix">
			<uni-breadcrumb separator="/" style="width:300px;float:left;">
			  <uni-breadcrumb-item v-for="(route,index) in routes" :key="index" :to="route.to">
			    {{route.name}}
			  </uni-breadcrumb-item>
			</uni-breadcrumb>
			
		</view>
		<!--中文内容-->
		<view class="menu-content left clearfix">
			<zh-goods-add-label :goods="goods" :userinfo="userinfo"></zh-goods-add-label>
		</view>
		
	</view>
</template>
<style>
	.uni-input-input{
		text-align: left !important;
		font-weight:400 !important;
		background:#fff !important;
		font-size:14px !important;
	}
	tr{background:#fff !important;}
	.cell-content{background:#fff !important;}
</style>

<style scoped>
	.menu-content{width:96%;min-height:500px;margin-left:2%;}
	.current-label{background:#eee;border-bottom:1px solid #2979ff;}
	.menu-breadcrumb view:first-child{margin-left:20px;}
	.menu-breadcrumb view{float:left;width:100px;line-height:45px;text-align: center;border-radius: 5px 5px 0 0;margin-top:5px;cursor:pointer;}
</style>

<script>
	export default {
		data() {
			return {
				currentLabel:1,
				goods:{},
				routes: [
				        {
				          to: "/A",
				          name: "商品管理",
				        },
				        {
				          to: "/B",
				          name: "添加商品",
				        },
				      ],
			}
		},
		props:{
			userinfo:{
				type:Object,
				default:{}
			}
		},
		methods: {
			 setLabel(item){
				 this.currentLabel = item;
			 }
		}
	}
</script>


